# example how I wish to configurate my active_background

ActiveBackground.Configuration.configure do |config|
  # configuration for master server and middleman
  config.host='127.0.0.1'
  config.port=9595
  config.server_name='active_background'
  config.background=true
  
  config.logging.enable=true
  config.logging.level=Logger::DEBUG
  config.logging.file= File.dirname(__FILE__) + '/../log/active_background.log'
  
  config.rails.enable=true
  config.rails.root_dir=File.dirname(__FILE__) + '/../../../../'
  
  config.database.type=:active_record
  config.database.maximum_connections=50
  
  config.default_env=:production

  config.slave(:slave1) do |config|
    config.host='63.41.21.2'
    config.port=9100
    config.server_name='active_background_slave1'
    config.fallback=1
  end
  
  config.slave(:slave2) do |config|
    config.host='123.41.22.1'
    config.port=9100
    config.server_name='active_background_slave2'
    config.fallback=2
  end
  
  config.slave(:slave3) do |config|
    config.host='84.41.23.4'
    config.port=9100
    config.server_name='active_background_slave3'
    config.fallback=3
  end
  
  config.access_control(:master, :slave1, :slave2, :slave3) do |ac|
    ac.allow :localhost
    ac.disallow '*'
  end
end